package com.xyx.yfy_site_msg.system.service.impl;

import com.xyx.yfy_site_msg.system.entity.YfyMenu;
import com.xyx.yfy_site_msg.system.mapper.YfyMenuMapper;
import com.xyx.yfy_site_msg.system.service.YfyMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xyx
 * @since 2020-11-11
 */
@Service
@Transactional
public class YfyMenuServiceImpl extends ServiceImpl<YfyMenuMapper, YfyMenu> implements YfyMenuService {

    @Override
    public List<YfyMenu> loadAllUserMenu(Integer usertype) {
        return this.getBaseMapper().loadAllUserMenu(usertype);
    }

    @Override
    public List<String> loadAllPermissionByUsertype(Integer userType) {
        return this.getBaseMapper().loadAllPermissionByUsertype(userType);
    }
}
